#ifndef SERVER_H_
#define SERVER_H_

#include <pthread.h>

#include "../databaseADT/databaseADT.h"

/* SPLITS */
#define MAX_SPLITS          10

typedef struct splitNode
{
    int cID;
    pthread_t thread;
} splitNode;


int getDir (char * dir, char * path);
void getDirType(char * params, char * dir, int * type);

/* Funciones que preguntan a la DB */
void last10(char * param);
void newDir (char * param);
void ulast10(char * param);
void dir(char * param);
void registrar(char * param);
void usuarios(char * param);

/* Funciones split */
void initSplits(splitNode *splits);

#endif /*SERVER_H_*/
